home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
wpjv1n3.zip
/
PAINT.ZIP
/
PAINT.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-02-24
|
603b
|
36 lines
//
// PAINT Object Header
//
// Erudite Software - Andrew Bradnan (c) 1993
// Created 2/24/93
//
// EFrame Version 1.0
//
#ifndef __PAINT_H
#define __PAINT_H
#ifndef __WINDOWS_H
#include <windows.h>
#endif
#ifdef __EBUG_H
#include "ebug.h"
#endif
class PAINT {
public:
PAINT (HWND p_hWnd) : hWnd (p_hWnd) {BeginPaint (hWnd, &ps); };
~PAINT () { EndPaint (hWnd, &ps); };
operator HDC () { return ps.hdc; };
operator RECT FAR * () { return &ps.rcPaint; };
operator BOOL () { return ps.fErase; };
protected:
HWND hWnd;
PAINTSTRUCT ps;
};
#endif // __DC_H